import store from '@/store'
export const tableOptionAdd = {
  "column": [
    {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl: '/support/swpmtvmcode/page',
      props: {
        label: 'tvmCode',
        value: 'tvmCode',
        res: 'data.records'
      },
      filterable: true,
      dicQuery: {
      size: -1,
      stationCode: store.getters.userInfo.stationCode,
      status: '1'
	  },
      cell: true,
    }, {
      "type": "number",
      "label": "清出金额（硬币）",
      "prop": "clearOutAmount",
      "precision": 2,
      cell: true,
      step:0
    }, {
      "type": "number",
      "label": "清出金额（纸币）",
      "prop": "clearOutPaperAmount",
      "precision": 2,
      cell: true,
      step:0
    },]

}

export const tableOptionView = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  tip:false,
  header: false,
  menu:false,
  "column": [
    {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl:'/support/swpmtvmcode/page',
      props: {
        label: 'tvmCode',
        value: 'tvmCode',
        res:'data.records'
      },
      filterable: true,
      dicQuery: {
      	size: -1,
      	stationCode: store.getters.userInfo.stationCode,
      	status: '1'
      },
    }, {
      "type": "number",
      "label": "清出金额（硬币）",
      "prop": "clearOutAmount",
      "precision": 2,
    }, {
      "type": "number",
      "label": "清出金额（纸币）",
      "prop": "clearOutPaperAmount",
      "precision": 2,
    },]

}

export const tableOptionViewRecords = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  // tip:false,
  // header: false,
  refreshBtn: false,
  addBtn: false,
  menu:false,
  "column": [
    {
      "type": "select",
      "label": "TVM编号",
      "prop": "tvmCode",
      dicUrl:'/support/swpmtvmcode/page',
      props: {
        label: 'tvmCode',
        value: 'tvmCode',
        res:'data.records'
      },
      filterable: true,
      dicQuery: {
      	size: -1,
      	stationCode: store.getters.userInfo.stationCode,
      	status: '1'
      },
    }, {
      "type": "number",
      "label": "清出金额（硬币）",
      "prop": "clearOutAmount",
      "precision": 2,
    }, {
      "type": "number",
      "label": "清出金额（纸币）",
      "prop": "clearOutPaperAmount",
      "precision": 2,
    },]

}

export const formOptionAdd = {
  submitBtn:false,
  emptyBtn:false,
  column: [
    {
      "type": "select",
      "label": "交款人名称",
      "prop": "payPersonName",
      params: {
        userCodeKey: 'payPersonJobNo'
      },
      component: 'user-select',
      search: true,
    }, 
    {
      "type": "input",
      "label": "交款人工号",
      "prop": "payPersonJobNo",
      disabled:true,
      search: true,
    },  {
      "type": "datetime",
      "label": "清出时间",
      "prop": "cleanTime",
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss'
    },
    {
      "type": "select",
      "label": "收款人名称",
      "prop": "payeePersonName",
      params: {
        userCodeKey: 'payeePersonJobNo'
      },
      component: 'user-select'
    }, 
    {
      "type": "input",
      "label": "收款人工号",
      "prop": "payeePersonJobNo",
      disabled:true
    },	 {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      span:24
    },]
}

export const formOptionView = {
  submitBtn:false,
  emptyBtn:false,
  detail:true,
  column: [
    {
      "type": "select",
      "label": "交款人名称",
      "prop": "payPersonName",
      params: {
        userCodeKey: 'payPersonJobNo'
      },
      component: 'user-select',
      search: true,
    }, 
    {
      "type": "input",
      "label": "交款人工号",
      "prop": "payPersonJobNo",
      disabled:true,
      search: true,
    },  {
      "type": "datetime",
      "label": "清出时间",
      "prop": "cleanTime",
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },{
      "type": "select",
      "label": "收款人名称",
      "prop": "payeePersonName",
      params: {
        userCodeKey: 'payeePersonJobNo'
      },
      component: 'user-select'
    }, 
    {
      "type": "input",
      "label": "收款人工号",
      "prop": "payeePersonJobNo",
      disabled:true
    }, 	 {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      span:24,
    },]
}


export const formOptionViewRecords = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  arrow: false,
  submitBtn:false,
  emptyBtn:false,
  detail:true,
  refreshBtn: false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  column: [
    {
      "type": "select",
      "label": "交款人名称",
      "prop": "payPersonName",
      params: {
        userCodeKey: 'payPersonJobNo'
      },
      component: 'user-select'
    }, 
    {
      "type": "input",
      "label": "交款人工号",
      "prop": "payPersonJobNo",
      disabled:true
    },  {
      "type": "datetime",
      "label": "清出时间",
      "prop": "cleanTime",
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
    },{
      "type": "select",
      "label": "收款人名称",
      "prop": "payeePersonName",
      params: {
        userCodeKey: 'payeePersonJobNo'
      },
      component: 'user-select'
    }, 
    {
      "type": "input",
      "label": "收款人工号",
      "prop": "payeePersonJobNo",
      disabled:true
    },	 {
      "type": "textarea",
      "label": "备注",
      "prop": "remark"
    }]
}


